#include #include using namespace std; //prototype aka prophecy void displayTimesTable(); //logical unit of work int three() { int result = 3; //useful stuff return result; } int max(int x, int y) { int result = x; if(y > x) { result = y; } return result; } //function void main() { displayTimesTable(); int j = three(); cout << j << endl; cout << max(6,99) << endl; } void displayTimesTable() { for(int i = 1; i <= 10; i++) { for(int j = 1; j <= 10; j++) { cout << setw(4) << i * j; } cout << endl; } } //void main() //{ // int count; // double total; // double min; // double max; // double current; // // do // { // cout << "How many numbers will you enter? "; // cin >> count; // } // while(count < 1); // // for(int i = 0; i < count; i++) // { // cout << "Enter a number: "; // cin >> current; // // if(i == 0) // { // min = current; // max = current; // total = current; // } // else // { // total += current; // if(current > max) // { // max = current; // } // if(current < min) // { // min = current; // } // } // } // cout << "Average = " << total/count << endl; // cout << "Minimum = " << min << endl; // cout << "Maximum = " << max << endl; // // // //}